/* ---结构 ---*/
/* ！分结构、内容、组件写 */
/* header */
.header-container {
    border-bottom: 1px solid #dadada;
    background-color: #fff;
}

/* ！在首页不用设置float:left，因为在根据屏幕设置容器width,push那会由于left定位需要已经设置了浮动 */
.header-logo-container,
.header-btn-container,
.header-nav-container {
    height: 64px;
}
/* nav */
.nav-container{
    overflow: hidden;    
    position: relative;
    top: -1px;
    height: 0px;
    border-bottom: 1px solid #dadada;
     /* !设置动画时间 transition: 改动属性名 时间;*/
    transition: height 0.5s;
}

.nav-container-extended{
    top: 0px;
    height: 201px;
}

.slider-container{
    margin: 20px 0 0 0;
    /* background-color: #dedede; */
}

.slider-container .row{
    background-color: #ededed;
    margin-left: 0;
    margin-right: 0;
}

@media(min-width:768px){
    /* ！css父级涉及多个，用后代选择器 */
    .slider-container .row{
        display: flex;
        align-items: center;
    }
}

.slider-text-container {
    padding: 20px 0;
}
/* ---内容--- */
/* header */
/* ！只需设置居左居右和垂直居中，用flex布局设置 */
.header-logo {
    display: flex;
    align-items: center;
    width: 136px;
    height: 100%;
}

.header-nav,
.header-nav-item,
.header-nav-link {
    height: 100%;
}

.header-nav {
    display: flex;
    justify-content: flex-end;
}

.header-nav-item {
    /* ！调整居中需要到内容容器 */
    margin-left: 24px;
}

.header-nav-link{
    display: flex;
    align-items: center;
    font-weight: bold;
}

.header-btn-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
/* nav */
.nav-link{
    display: block;
    height: 40px;
    line-height: 40px;
}
/*slider*/
.slider-title,
.slider-subtitle,
.slider-btns {
    margin-bottom: 20px;
    text-align: center;
}
.slider-title {
    font-size: 30px;
}
.slider-subtitle {
    font-size: 20px;
    font-weight: normal;
}
/* ！独特样式到内容里写 */
.slider-btns .btn-rounded{
    margin-right: 10px;
    margin-bottom: 10px;
}
.slider-btns .btn-rounded:last-child{
    margin-right: 0;
}
/* ---组件--- */
/* ！组件即多个相同样式 */
/*btn-toggle*/
.btn-toggle {
    padding: 10px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    /* ？ */
    background-color: transparent;
}

.btn-toggle:hover {
    background-color: #f9f9f9;
}

.btn-toggle:hover .btn-toggle-bar {
    background-color: #1428a0;
}

.btn-toggle-bar {
    display: block;
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background-color: #363636;
}

.btn-toggle-bar+.btn-toggle-bar {
    margin-top: 4px;
}

/*btn-rounded*/
.btn-rounded {
    display: inline-block;
    padding: 10px 30px;
    background-color: transparent;
    border: 1px solid #000;
    border-radius: 30px;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}
.btn-rounded:hover {
    background-color: #000;
    color: #fff;
}
